package com.smrs.deliver.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.jof.framework.dao.hibernate.BaseDAOHibernateImpl;
import com.jof.framework.util.Pager;
import com.smrs.deliver.dao.DeliverSequenceDao;
import com.smrs.deliver.model.DeliverSequenceModel;
import com.smrs.service.BaseService;

@Component(value="deliverSequenceService")
public class DeliverSequenceService extends BaseService<DeliverSequenceModel,Long>{
	@Autowired
	private DeliverSequenceDao deliverSequenceDao ;
	


	public Pager<DeliverSequenceModel> getByNameLikePager(String name, Pager<DeliverSequenceModel> pager){
		return deliverSequenceDao.getByNameLikePager(name,pager);
		
	}
	
	public String updateDeliverSequenceValue(){
		String seqNo = "";
		seqNo=deliverSequenceDao.getDeliverSequenceValue();
		return seqNo;
	}
	
	public Long getDeliverDetailNextValue(){
		Long seq = 0l;
		
		return seq;
	}
	
	@Override
	public BaseDAOHibernateImpl<DeliverSequenceModel, Long> getPerformDao() {		
		return deliverSequenceDao;
	}

	
	
}
